import java.awt.List;
import java.util.ArrayList;

public class toAreeyTest {
	// 实现函数public String[] toArray(List<String> list)，
	// 其中参数list中元素类型为String字符串。
	public static void main(String[] args) {
		// Scanner scanner =new Scanner( System.in);
		ArrayList<String> list = new ArrayList<>();
		list.add("Hello World");
		list.add("hello java");
		list.add("dhajigaiofa");
		String[] string = new String[list.size()];
		int i = 0;
		for (String string2 : list) {
			string[i] = string2;
			i++;

		}
		for (String string2 : string) {//
			System.out.println(string2);
		}

	}
}
